<?php
namespace app\common\controller;

class Api
{
    public static function returnJson($code, $data = [], $msg = '')
    {
        echo json_encode([
            'code' => "$code",
            'data' => $data,
            'msg'  => $msg,
        ], 256);
        exit;
    }

}